<template>
  <div ref="dom"></div>
</template>

<script lang="ts">
import { Ref } from "vue";
import { defineComponent, ref, onMounted } from "vue";
export default defineComponent({
  setup() {
    const dom: Ref<HTMLElement> = ref(null) as any;
    onMounted(() => {
      const data = dom.value.getBoundingClientRect();
    });
    return {
      dom,
    };
  },
});
</script>

<style lang="scss" scoped></style>
